home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 001 / apcp.arc / ANNNA.CMD < prev    next >
Encoding:
Text File  |  1987-01-01  |  10.3 KB  |  404 lines

  1.      goto menu
  2.  
  3. dial:
  4.      isfile s8
  5.      if success
  6.           return
  7.      else
  8.      endif
  9.      clear
  10.      message "│ ... │"
  11.      locate 0,8
  12.      message s8
  13.      locate 0,17
  14.      message "│ ........................... │"
  15.      locate 0,49
  16.      message s6
  17.      locate 0,77
  18.      message "│"
  19.      locate 2,0
  20.      transmit "I!"
  21.      pause 1
  22.      transmit "ATZ!"
  23.      waitfor "OK"
  24.      transmit "^E!"
  25.      waitfor "READY"
  26.      transmit "D"
  27.      transmit S8
  28.      transmit "!"
  29.      rget s9
  30.      rget s9 80 40
  31.      rget s9 40 40
  32.      rget s9 40 40
  33.  
  34. mess:
  35.      find s9 "BUSY"
  36.      if found
  37.           assign s7 "M"
  38.           return
  39.      else
  40.      endif
  41.      find s9 "ANSWER TONE"
  42.      if found
  43.           set parity none
  44.           set databits 8
  45.           clear
  46.           log open s8
  47.           alarm 2
  48.           exit
  49.      else
  50.      endif
  51.      find s9 "RINGING"
  52.      if found
  53.           rget s9
  54.           find s9 "RINGING"
  55.           if not found
  56.                goto mess
  57.           else
  58.                log open s8
  59.                message "NO ANSWER - STILL RINGING"
  60.                log close
  61.                transmit "^C^D^C"
  62.           endif
  63.      else
  64.      endif
  65. return
  66.  
  67. menu:
  68.      assign s7 " "
  69.      log close
  70.      clear
  71.      message "╔════════════════════════════════════════════════════════════════════════════╗"
  72.      message "║ A- ........................ ...-....  V- ........................ ...-.... ║"
  73.      message "║ B- ........................ ...-....  W- ........................ ...-.... ║"
  74.      message "║ C- ........................ ...-....  X- ........................ ...-.... ║"
  75.      message "║ D- ........................ ...-....  Y- ........................ ...-.... ║"
  76.      message "║ E- ........................ ...-....  Z- ........................ ...-.... ║"
  77.      message "║ F- ........................ ...-....  0- ........................ ...-.... ║"
  78.      message "║ G- ........................ ...-....  1- ........................ ...-.... ║"
  79.      message "║ H- ........................ ...-....  2- ........................ ...-.... ║"
  80.      message "║ I- ........................ ...-....  3- ........................ ...-.... ║"
  81.      message "║ J- ........................ ...-....  4- ........................ ...-.... ║"
  82.      message "║ K- ........................ ...-....  5- ........................ ...-.... ║"
  83.      message "║ L- ........................ ...-....  6- ........................ ...-.... ║"
  84.      message "║ M- ........................ ...-....  7- ........................ ...-.... ║"
  85.      message "║ N- ........................ ...-....  8- ........................ ...-.... ║"
  86.      message "║ O- ........................ ...-....  9- ........................ ...-.... ║"
  87.      message "║ P- ........................ ...-....  @- ........................ ...-.... ║"
  88.      message "║ Q- ........................ ...-....  #- ........................ ...-.... ║"
  89.      message "║ R- ........................ ...-....  $- ........................ ...-.... ║"
  90.      message "║ S- ........................ ...-....  %- ........................ ...-.... ║"
  91.      message "║ T- ........................ ...-....  &- ........................ ...-.... ║"
  92.      message "║ U- ........................ ...-....  *- ........................ ...-.... ║"
  93.      message "╚════════════════════════════════════════════════════════════════════════════╝"
  94.      locate 23,2
  95.      get s0
  96.  
  97. top:
  98.      find s0 "A"
  99.      if found
  100.           assign s8 "...-...."
  101.           assign s6 "..........................."
  102.           gosub dial
  103.      else
  104.      endif
  105.      goto speedup                      ; Skip Empty Elements
  106.      find s0 "B"
  107.      if found
  108.           assign s8 "   -    "
  109.           assign s6 "                           "
  110.           gosub dial
  111.      else
  112.      endif
  113.      find s0 "C"
  114.      if found
  115.           assign s8 "   -    "
  116.           assign s6 "                           "
  117.           gosub dial
  118.      else
  119.      endif
  120.      find s0 "D"
  121.      if found
  122.           assign s8 "   -    "
  123.           assign s6 "                           "
  124.           gosub dial
  125.      else
  126.      endif
  127.      find s0 "E"
  128.      if found
  129.           assign s8 "   -    "
  130.           assign s6 "                           "
  131.           gosub dial
  132.      else
  133.      endif
  134.      find s0 "F"
  135.      if found
  136.           assign s8 "   -    "
  137.           assign s6 "                           "
  138.           gosub dial
  139.      else
  140.      endif
  141.      find s0 "G"
  142.      if found
  143.           assign s8 "   -    "
  144.           assign s6 "                           "
  145.           gosub dial
  146.      else
  147.      endif
  148.      find s0 "H"
  149.      if found
  150.           assign s8 "   -    "
  151.           assign s6 "                           "
  152.           gosub dial
  153.      else
  154.      endif
  155.      find s0 "I"
  156.      if found
  157.           assign s8 "   -    "
  158.           assign s6 "                           "
  159.           gosub dial
  160.      else
  161.      endif
  162.      find s0 "J"
  163.      if found
  164.           assign s8 "   -    "
  165.           assign s6 "                           "
  166.           gosub dial
  167.      else
  168.      endif
  169.      find s0 "K"
  170.      if found
  171.           assign s8 "   -    "
  172.           assign s6 "                           "
  173.           gosub dial
  174.      else
  175.      endif
  176.      find s0 "L"
  177.      if found
  178.           assign s8 "   -    "
  179.           assign s6 "                           "
  180.           gosub dial
  181.      else
  182.      endif
  183.      find s0 "M"
  184.      if found
  185.           assign s8 "   -    "
  186.           assign s6 "                           "
  187.           gosub dial
  188.      else
  189.      endif
  190.      find s0 "N"
  191.      if found
  192.           assign s8 "   -    "
  193.           assign s6 "                           "
  194.           gosub dial
  195.      else
  196.      endif
  197.      find s0 "O"
  198.      if found
  199.           assign s8 "   -    "
  200.           assign s6 "                           "
  201.           gosub dial
  202.      else
  203.      endif
  204.      find s0 "P"
  205.      if found
  206.           assign s8 "   -    "
  207.           assign s6 "                           "
  208.           gosub dial
  209.      else
  210.      endif
  211.      find s0 "Q"
  212.      if found
  213.           assign s8 "   -    "
  214.           assign s6 "                           "
  215.           gosub dial
  216.      else
  217.      endif
  218.      find s0 "R"
  219.      if found
  220.           assign s8 "   -    "
  221.           assign s6 "                           "
  222.           gosub dial
  223.      else
  224.      endif
  225.      find s0 "S"
  226.      if found
  227.           assign s8 "   -    "
  228.           assign s6 "                           "
  229.           gosub dial
  230.      else
  231.      endif
  232.      find s0 "T"
  233.      if found
  234.           assign s8 "   -    "
  235.           assign s6 "                           "
  236.           gosub dial
  237.      else
  238.      endif
  239.      find s0 "U"
  240.      if found
  241.           assign s8 "   -    "
  242.           assign s6 "                           "
  243.           gosub dial
  244.      else
  245.      endif
  246.      find s0 "V"
  247.      if found
  248.           assign s8 "   -    "
  249.           assign s6 "                           "
  250.           gosub dial
  251.      else
  252.      endif
  253.      find s0 "W"
  254.      if found
  255.           assign s8 "   -    "
  256.           assign s6 "                           "
  257.           gosub dial
  258.      else
  259.      endif
  260.      find s0 "X"
  261.      if found
  262.           assign s8 "   -    "
  263.           assign s6 "                           "
  264.           gosub dial
  265.      else
  266.      endif
  267.      find s0 "Y"
  268.      if found
  269.           assign s8 "   -    "
  270.           assign s6 "                           "
  271.           gosub dial
  272.      else
  273.      endif
  274.      find s0 "Z"
  275.      if found
  276.           assign s8 "   -    "
  277.           assign s6 "                           "
  278.           gosub dial
  279.      else
  280.      endif
  281.      find s0 "0"
  282.      if found
  283.           assign s8 "   -    "
  284.           assign s6 "                           "
  285.           gosub dial
  286.      else
  287.      endif
  288.      find s0 "1"
  289.      if found
  290.           assign s8 "   -    "
  291.           assign s6 "                           "
  292.           gosub dial
  293.      else
  294.      endif
  295.      find s0 "2"
  296.      if found
  297.           assign s8 "   -    "
  298.           assign s6 "                           "
  299.           gosub dial
  300.      else
  301.      endif
  302.      find s0 "3"
  303.      if found
  304.           assign s8 "   -    "
  305.           assign s6 "                           "
  306.           gosub dial
  307.      else
  308.      endif
  309.      find s0 "4"
  310.      if found
  311.           assign s8 "   -    "
  312.           assign s6 "                           "
  313.           gosub dial
  314.      else
  315.      endif
  316.      find s0 "5"
  317.      if found
  318.           assign s8 "   -    "
  319.           assign s6 "                           "
  320.           gosub dial
  321.      else
  322.      endif
  323.      find s0 "6"
  324.      if found
  325.           assign s8 "   -    "
  326.           assign s6 "                           "
  327.           gosub dial
  328.      else
  329.      endif
  330.      find s0 "7"
  331.      if found
  332.           assign s8 "   -    "
  333.           assign s6 "                           "
  334.           gosub dial
  335.      else
  336.      endif
  337.      find s0 "8"
  338.      if found
  339.           assign s8 "   -    "
  340.           assign s6 "                           "
  341.           gosub dial
  342.      else
  343.      endif
  344.      find s0 "9"
  345.      if found
  346.           assign s8 "   -    "
  347.           assign s6 "                           "
  348.           gosub dial
  349.      else
  350.      endif
  351.      find s0 "@"
  352.      if found
  353.           assign s8 "   -    "
  354.           assign s6 "                           "
  355.           gosub dial
  356.      else
  357.      endif
  358.      find s0 "#"
  359.      if found
  360.           assign s8 "   -    "
  361.           assign s6 "                           "
  362.           gosub dial
  363.      else
  364.      endif
  365.      find s0 "$"
  366.      if found
  367.           assign s8 "   -    "
  368.           assign s6 "                           "
  369.           gosub dial
  370.      else
  371.      endif
  372.      find s0 "%"
  373.      if found
  374.           assign s8 "   -    "
  375.           assign s6 "                           "
  376.           gosub dial
  377.      else
  378.      endif
  379.      find s0 "&"
  380.      if found
  381.           assign s8 "   -    "
  382.           assign s6 "                           "
  383.           gosub dial
  384.      else
  385.      endif
  386.      find s0 "*"
  387.      if found
  388.           assign s8 "   -    "
  389.           assign s6 "                           "
  390.           gosub dial
  391.      else
  392.      endif
  393.  
  394. speedup:
  395.      find s7 "M"
  396.      if found
  397.           assign s7 " "
  398.           goto top
  399.      else
  400.      endif
  401.      message "All Numbers Connected - Or Did Not Answer"
  402.      alarm 2
  403.      exit
  404.